home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / powertip.arc / INSTALL.BAT next >
DOS Batch File  |  1991-07-10  |  3KB  |  79 lines

  1. echo off
  2. cls
  3. echo.
  4. echo ┌─────────────────────────────────────────────────────────────────────────────┐
  5. echo │                     Best of Star─Dot─Star (*.*) Vol 1                       │
  6. echo │                                                                             │
  7. echo │                         Disk Installation Program                           │
  8. echo │                                                                             │
  9. echo │      Copyright 1988 by PCW Communications, Inc.  All rights reserved.       │
  10. echo └─────────────────────────────────────────────────────────────────────────────┘
  11. echo.
  12. echo.
  13. REM ----- Check first parameter
  14. for %%d in (A: B: C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if %%d==%1 goto goodarg1
  15. for %%d in (a: b: c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) do if %%d==%1 goto goodarg1
  16. goto badargs
  17. :goodarg1
  18. REM ----- Check second parameter
  19. for %%d in (A: B: C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if %%d==%2 goto goodarg2
  20. for %%d in (a: b: c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) do if %%d==%2 goto goodarg2
  21. goto badargs
  22. :goodarg2
  23. REM ----- Reject equal drives
  24. if %1==%2 goto badargs
  25. REM ----- Reject source if star.exe is not there
  26. if not exist %1star.exe goto badargs
  27. REM ----- Switch to destination drive
  28. %2
  29. REM ----- Check if this is an update to an old STAR1 directory
  30. if exist ..\STAR1\star.exe goto start
  31. REM ----- Create and/or change to new STAR1 directory
  32. if not exist STAR1\star.exe md STAR1
  33. cd STAR1
  34. :start
  35. REM ----- Give user a chance to cancel, then install files
  36. echo Installing %1*.* to %2
  37. echo.
  38. pause
  39. echo.
  40. echo Installation in progress.  Please wait...
  41. copy %1*.* >nul
  42. if not exist _WP\readme md _WP >nul
  43. if not exist _WS\readme md _WS >nul
  44. if not exist _TURBO\readme md _TURBO >nul
  45. if not exist _BATCH\readme md _BATCH >nul
  46. if not exist _BASIC\readme md _BASIC >nul
  47. if not exist _C\readme md _C >nul
  48. if not exist _dBASE\readme md _dBASE >nul
  49. if not exist _123\readme md _123 >nul
  50. if not exist _PARADOX\readme md _PARADOX >nul
  51. if not exist _DOS\readme md _DOS >nul
  52. copy %1\_WP\*.* %2_WP >nul
  53. copy %1\_WS\*.* %2_WS >nul
  54. copy %1\_TURBO\*.* %2_TURBO >nul
  55. copy %1\_BATCH\*.* %2_BATCH >nul
  56. copy %1\_BASIC\*.* %2_BASIC >nul
  57. copy %1\_C\*.* %2_C >nul
  58. copy %1\_dBASE\*.* %2_dBASE >nul
  59. copy %1\_123\*.* %2_123 >nul
  60. copy %1\_PARADOX\*.* %2_PARADOX >nul
  61. copy %1\_DOS\*.* %2_DOS >nul
  62. star
  63. goto end
  64. :badargs
  65. echo          INSTALL.BAT requires source and destination drive letters.
  66. echo          Try running the program again with a command such as:
  67. echo.
  68. echo                             a:install a: c:
  69. echo.
  70. echo          where a: is the source drive holding the diskette and c: is
  71. echo          the destination drive to which you want to copy files. The
  72. echo          source and destination drives must be different. INSTALL.BAT
  73. echo          will copy all files and directories from the source diskette
  74. echo          to a new directory named STAR1 on the destination drive.
  75. echo.
  76. echo.
  77. echo.
  78. :end
  79.